package com.distribution.system.service;

import com.distribution.common.core.domain.entity.SysUser;
import com.distribution.system.domain.dto.AgentAddDto;
import com.distribution.system.domain.dto.AgentDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *
 * 代理卡信息表(CmccDaProxyCardManage)表服务接口
 *
 * @since 2023-05-20 20:46:37
 */
public interface AgentManageService {

    void addAgent(AgentAddDto agentAddDto);

    @Transactional(rollbackFor = Exception.class)
    void delAgentByUserId(Long userId);

    void updateAgent(AgentDTO agentDTO);

    void unbindWeChat(SysUser sysUser);

    List<SysUser> selectAgent(AgentDTO agentDTO,SysUser sysUser);

    SysUser getMyInfo(Long postId);

    void setSubDeduct(Double subDeduct);
}
